/*弹出框组件*/
.modal(@time:0.24s,@type:ease-out){
  transition-property:all;
  transition-duration: @time;
  transition-timing-function: @type;
  /* Firefox 4 */
  -moz-transition-property:all;
  -moz-transition-duration:@time;
  -moz-transition-timing-function:@type;
  /* Safari 和 Chrome */
  -webkit-transition-property:all;
  -webkit-transition-duration:@time;
  -webkit-transition-timing-function:@type;
  /* Opera */
  -o-transition-property:all;
  -o-transition-duration:@time;
  -o-transition-timing-function:@type;
}

.modal-bg{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;

  overflow: hidden;

  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  outline: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(236, 236, 236, 0.39);
  .modal();
}
.modal-box{
  position: absolute;
  overflow: hidden;
  .modal();

}
